package com.example.homeworkmutualevaluation.Entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;

import java.sql.Date;
import java.sql.Timestamp;

@Entity
@Table(name = "student")
@Data
public class Student {
    @Id
    private String phone;
    private String password;
    private String name;
    private String sex;
    private Date birthday;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Timestamp bannedtime;
}
